/*************************************************************
 * File: EntityHelper.java
 * Copyright (c) 2012
 * Author: Huang Shaobin
 * Email: Shaobin.Software@gmail.com Shaobin_Software@163.com 
 * Date: Feb 23, 2013
 * Description: 
 ************************************************************/

package snow.core.persistence;

import snow.core.enums.Status;

/**
 * 实体相关的工具类
 * 
 * @author Shaobin.Software@gmail.com Shaobin_Software@163.com 
 * @version 1.0 
 */
public class EntityHelper {

	public static boolean validate(Entity<?> entity) {
		return entity != null && Status.SUCCESS.equals(entity.getStatus());
	}
}
